#ifndef VJSONITEMWIDGET_H
#define VJSONITEMWIDGET_H

#include <QWidget>
#include <QStringList>

namespace Ui {
class VJsonItemWidget;
}

class VJsonItemWidget : public QWidget
{
    Q_OBJECT

public:
    explicit VJsonItemWidget(QWidget *parent, QString type, QString title, QString value);
    ~VJsonItemWidget();

    QString get_value();

private slots:
    void on_lineEdit_color_textChanged(const QString &arg1);

    void on_btn_selectColor_clicked();

private:
    Ui::VJsonItemWidget *ui;
    QString makeColorString(const QColor &color, const QString type);
    QStringList get_skins_names();

    bool eventFilter(QObject *watched, QEvent *event);

    QString m_type;
};

#endif // VJSONITEMWIDGET_H
